package com.ld.control.business.process.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 任务流程节点模板表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-24
 */
@Data
@TableName("process_node_tmp")
@Schema(description = "ProcessNodeTmpModel对象")
public class ProcessNodeTmpModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "任务流程id")
    private Long processTmpId;

    @Schema(description = "节点用到的设备id")
    private Long equipmentId;

    @Schema(description = "节点用到的方法id")
    private Long equipmentMethodTmpId;

    @Schema(description = "流程节点源id")
    private String sourceNodeId;

    @Schema(description = "流程节点目标id")
    private String targetNodeId;

    @Schema(description = "节点名称")
    private String nodeName;

    @Schema(description = "0普通节点，1processFor里面节点")
    private Integer nodeFlag;

    @Schema(description = "节点类型：0系统节点，1指令节点，2设备节点")
    private Integer nodeType;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String PROCESS_TMP_ID = "process_tmp_id";

    public static final String EQUIPMENT_ID = "equipment_id";

    public static final String EQUIPMENT_METHOD_TMP_ID = "equipment_method_tmp_id";

    public static final String SOURCE_NODE_ID = "source_node_id";

    public static final String TARGET_NODE_ID = "target_node_id";

    public static final String NODE_NAME = "node_name";

    public static final String NODE_TYPE = "node_type";

    public static final String DESCRIPTION = "description";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
